using System;
using System.Xml;

namespace OR.Reuse.Persistence
{
	/// <summary>
	/// Summary description for PersistenceConfig.
	/// </summary>
	public class PersistenceConfig
	{
		private static XmlNamespaceManager			mNamespaces;
		private static string						mConnectionString;
		private static string						mSchemaPath;

		private PersistenceConfig()
		{
		}

		public static string MapSchema( string pRelativeFilename )
		{
			return ( mSchemaPath + pRelativeFilename );
		}

		public static string SchemaPath
		{
			get
			{
				return ( mSchemaPath );
			}
			set
			{
				mSchemaPath = value;
			}
		}

		public static XmlNamespaceManager Namespaces
		{
			get
			{
				return ( PersistenceConfig.mNamespaces );
			}
			set
			{
				PersistenceConfig.mNamespaces = value;
			}
		}

		public static string ConnectionString
		{
			get
			{
				return ( PersistenceConfig.mConnectionString );
			}
			set
			{
				PersistenceConfig.mConnectionString = value;
			}
		}
	}
}
